class ShortcutTester < Sketch3D
  def container
    super do
      block { background 0 }
      group do
        box :fill => Red do
          block { @tx = 1 + pulse(60) }
        end
        box :fill => Blue do
          block { @ty = 1 + sin_pulse(60) }
        end
        box :fill => Green do
          block { @tz = 1 + sin_bounce(60) }
        end

        block do
          @rx = pi_pulse(5000)
          @rz = pi_pulse(2000)
        end

        block :when => lambda { frameCount % 15 == 0 } do

          puts "frameCount: #{frameCount}, sin_bounce: #{sin_bounce(60)}, sin_pulse: #{sin_pulse(60)}, cos_pulse: #{cos_pulse(60)}, smooth_pulse: #{smooth_pulse(60)}, pulse: #{pulse(60)}"
        end
      end
    end
  end
end


